package annoation;

import java.lang.annotation.*;

/**
 * @Author: hmm
 * @Created: 2019/11/26
 * @Description:
 * @Documented –注解是否将包含在JavaDoc中
 * @Retention –什么时候使用该注解
 * @Target? –注解用于什么地方
 * @Inherited – 是否允许子类继承该注解
 * @Modified by:
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Target(ElementType.METHOD)
public @interface Test {
    enum Priority {LOW, MEDIUM, HIGH}

    enum Status {STARTED, NOT_STARTED}

    String author() default "Yash";

    String mine() default "me";

    Priority priority() default Priority.LOW;

    Status status() default Status.NOT_STARTED;
}
